package treemodel.container.general;

import document.Context;
import treemodel.Node;
import treemodel.container.GeneralContainer;
import treeview.NodeView;
import treeview.container.VerticalContainer;
import treeview.unit.TerminationEmptyLine;

/**
 * Created by Pavel Nikolaev
 */
public final class Body extends GeneralContainer {

    @Override
    public NodeView createView(Context context) {
        VerticalContainer container = new VerticalContainer();
        for (Node node : myNodes) container.add(node.createView(context));
        container.add(new TerminationEmptyLine());
        return container;
    }
}
